-- GENERATED SPELL FOR [Fight Promoter] --


function spell0_26760(pUnit, Event) --@Portal Effect: Darnassus,n/a--
pUnit:FullCastSpellOnTarget(17608,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26760', 559, 1)
end

function spell1_26760(pUnit, Event) --@Portal Effect: Ironforge,n/a--
pUnit:FullCastSpellOnTarget(44089,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26760', 593, 1)
end

function spell2_26760(pUnit, Event) --@Portal Effect: Orgrimmar,n/a--
pUnit:FullCastSpellOnTarget(17609,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26760', 556, 1)
end

function spell3_26760(pUnit, Event) --@Portal Effect: Stormwind,n/a--
pUnit:FullCastSpellOnTarget(17334,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26760', 536, 1)
end

function spell4_26760(pUnit, Event) --@Portal Effect: Thunder Bluff,n/a--
pUnit:FullCastSpellOnTarget(17610,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26760', 569, 1)
end

function spell5_26760(pUnit, Event) --@Portal Effect: Undercity,n/a--
pUnit:FullCastSpellOnTarget(17611,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26760', 535, 1)
end

function Sorts_26760(pUnit, Event)
local choix_sorts_26760 = math.random(0, 5)
if choix_sorts_26760 == 0 then
pUnit:RegisterEvent('spell0_26760', 1, 1)
end
if choix_sorts_26760 == 1 then
pUnit:RegisterEvent('spell1_26760', 1, 1)
end
if choix_sorts_26760 == 2 then
pUnit:RegisterEvent('spell2_26760', 1, 1)
end
if choix_sorts_26760 == 3 then
pUnit:RegisterEvent('spell3_26760', 1, 1)
end
if choix_sorts_26760 == 4 then
pUnit:RegisterEvent('spell4_26760', 1, 1)
end
if choix_sorts_26760 == 5 then
pUnit:RegisterEvent('spell5_26760', 1, 1)
end
end

function mob26760_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26760', math.random(1500, 3000), 1)
end

function mob26760_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26760_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26760_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26760, 1, 'mob26760_Action')
RegisterUnitEvent(26760, 2, 'mob26760_Leave')
RegisterUnitEvent(26760, 3, 'mob26760_Kill')
RegisterUnitEvent(26760, 4, 'mob26760_Die')
